package a.e;

import a.e.a.h;
import a.e.a.hb;
import a.e.a.jb;
import a.i.n;
import org.xml.sax.InputSource;

import java.io.*;
import java.net.URL;

public class g
  extends f
{
  public static boolean h;
  
  public String a()
  {
    return "GML/XML Format";
  }
  
  public String b()
  {
    return "xgml";
  }
  
  public void a(a.j.g paramg, OutputStream paramOutputStream)
    throws IOException
  {
    PrintWriter localPrintWriter = new PrintWriter(paramOutputStream);
    h localh = new h(localPrintWriter);
    a.e.a.f localf = g();
    hb localhb = localf.a();
    n.a(this, "saving in xgml format....");
    localh.a("xgml");
    localhb.a(paramg, localh);
    localh.b();
    localPrintWriter.flush();
  }
  
  protected void a(a.j.g paramg, Reader paramReader)
    throws IOException
  {
    j.a_ locala_ = f().a(paramg);
    jb localjb = new jb(locala_);
    localjb.a(new InputSource(paramReader));
  }
  
  public void a(a.j.g paramg, InputStream paramInputStream)
    throws IOException
  {
    paramg.z();
    try
    {
      a(paramg, new InputSource(paramInputStream));
    }
    finally
    {
      paramg.A();
    }
  }
  
  private void a(a.j.g paramg, InputSource paramInputSource)
    throws IOException
  {
    j.a_ locala_ = f().a(paramg);
    jb localjb = new jb(locala_);
    localjb.a(paramInputSource);
  }
  
  public void b(a.j.g paramg, String paramString)
    throws IOException
  {
    FileInputStream localFileInputStream = new FileInputStream(paramString);
    URL localURL = paramg.cb();
    paramg.a(new File(paramString).toURL());
    try
    {
      a(paramg, localFileInputStream);
    }
    catch (IOException localIOException)
    {
      paramg.a(localURL);
      throw localIOException;
    }
    finally
    {
      localFileInputStream.close();
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.e.g

 * JD-Core Version:    0.7.0.1

 */